package com.example.dw.dto;

import lombok.Data;

import jakarta.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 用户学习课时DTO
 * @author system
 * @since 2024-01-01
 */
@Data
public class StudyPeriodDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    private Integer userid;

    /**
     * 课时ID
     */
    @NotNull(message = "课时ID不能为空")
    private Integer periodid;

    /**
     * 学习状态 (0-未学完 1-已学完)
     */
    @NotNull(message = "学习状态不能为空")
    private Integer state;

    /**
     * 课时类型
     */
    private Integer periodType;
} 